package net.shopxx.excel.util;

import java.io.File;

import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.io.SAXReader;

public class XmlUtils {

	//FIXME modify the definition 
	public static String filepath = "/WEB-INF/excels.xml";

	public static Document getDocument(String path) {
		SAXReader reader = new SAXReader();
		Document document = null;
		try {
			document = reader.read(new File(path + filepath));
		} catch (DocumentException e) {
			e.printStackTrace();
		}
		return document;
	}

}
